﻿<%@ Page Language="C#" ValidateRequest="false" Inherits="FrontBasePage" %>
<%@ Import Namespace="Whir.Framework" %>
<%@ Import Namespace="Whir.Service" %>
<%@ Import Namespace="Whir.Label" %>
<script type="text/C#" runat="server">
/*

 *描述： 本文件由ezEIP模板发布引擎生成，请勿直接更改此文件！！ 

 *模板路径：C:\Z_中濠酒店集团（深圳）有限公司\pc\template\品牌定位.shtml

 *生成时间：2020-06-18 17:20:23

 */

public Whir.Domain.Column PageColumn ; 
public Whir.Domain.SiteInfo PageSiteInfo ; 
public string columnid=""; 
protected void Page_Load(object sender, EventArgs e){
    columnid=Server.UrlDecode(RequestUtil.Instance.GetQueryString("columnid"));

 
    PageColumn = ServiceFactory.ColumnService.SingleOrDefault<Whir.Domain.Column>(106);
    PageSiteInfo = ServiceFactory.SiteInfoService.SingleOrDefault<Whir.Domain.SiteInfo>(2);
    Whir.Label.LabelHelper.Instance.SerColumnAndSiteInfoToChildControl(this, PageSiteInfo, PageColumn); 
    DataBind();
}
</script><!DOCTYPE html>
<html lang="zh-cn">
<head>
<!-- head Start-->
<wtl:include runat="server"      filename="head.html"></wtl:include>
<!-- head end -->
<wtl:Menu runat="server"  columnid='<%#PageColumn.ColumnId.ToInt()%>' OnlyOne="true"><ItemTemplate>
<script type="text/javascript">
   //定义栏目ID
   var navID = '<%# Container.DataRow["ColumnId"].ToReplace() %>';
</script>
</ItemTemplate></wtl:Menu>
</head>
<body>
<!--top-->
<wtl:include runat="server"       filename="top.html"></wtl:include>
<!--top End-->
<div class="Banner Brand BanB01 Pfsc">
	<ul class="ul">
		<wtl:list runat="server"  nulltip="" count="3" columnid="164" needpage="false" where="IsDel=0" categoryid='<%#PageColumn.ColumnId.ToInt()%>' order="sort desc,createdate desc"><ItemTemplate>
		<li>
			<div class="bgbox" style="background-image: url(<%=Whir.ezEIP.Web.SysManagePageBase.Insten.UploadFilePath %><%# Container.DataRow["ImageUrl"].ToReplace() %>)"></div>
			<a href='<%# Container.DataRow["Link"].ToReplace() %>' class="liboxA" >
				<div class="txtenwap">
					<span class="t">
						<%# Container.DataRow["EnTitle"].ToReplace() %>
					</span>
				</div>
				<div class="txt">
					<span class="title"><%# Container.DataRow["Title"].ToReplace() %></span>
					<span class="icon"> <i class="bg"></i></span>
					<span class="titleen"><%# Container.DataRow["BriefIntroduction"].ToReplace() %></span>
				</div>
				<div class="txten">
					<span class="t">
						<%# Container.DataRow["EnTitle"].ToReplace() %>
					</span>
				</div>
			</a>
		</li>
		</ItemTemplate></wtl:list>
	</ul>
</div>
<script>
var wh=$(window).outerHeight(true);
$('.Banner').height($(window).outerHeight(true));
$('.Banner ul li').each(function(){
	$(this).find('.txten').width($(this).height());
});
var maxh=0;
$('.Banner ul li').each(function(){
	maxh = $(this).find('.txt').height() > maxh ? $(this).find('.txt').height() : maxh; 
});
$('.Banner ul li').each(function(){
	var _this=$(this);
	var tw=_this.find('.txt').height();
	// alert(tw);
	var sw=_this.find('.t').width();

	_this.find('.t').width(wh);
	
	/*
	if( tw > sw){
		_this.find('.t').width(tw).css({'margin-left': (wh-maxh)/2+'px'});

	}else{
		_this.find('.t').width(wh);
	}
	*/
});
//$('.Banner ul li .txt').css({'padding-top': (wh-maxh)/2+'px'});
</script>
<!--bottom-->
<wtl:include runat="server"       filename="bottom.html"></wtl:include>
<!--bottom End-->>
</body>
</html>